/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package componentes.crud;

import com.sun.org.apache.bcel.internal.generic.LSTORE;
import java.awt.event.ActionEvent;
import java.util.List;
import javax.swing.AbstractAction;
import org.jdesktop.beansbinding.BindingGroup;

/**
 *
 * @author user
 */
public class CancelarAction extends AbstractAction{
    private List lista;
    private BindingGroup bindingGroup;

    public CancelarAction() {
        
    }
    

    @Override
    public void actionPerformed(ActionEvent e) {
        getBindingGroup().getBinding("tabla").unbind();
        for (Object object : lista) {
            
        }
        getBindingGroup().getBinding("tabla").bind();
    }

    /**
     * @return the lista
     */
    public List getLista() {
        return lista;
    }

    /**
     * @param lista the lista to set
     */
    public void setLista(List lista) {
        this.lista = lista;
    }

    /**
     * @return the bindingGroup
     */
    public BindingGroup getBindingGroup() {
        return bindingGroup;
    }

    /**
     * @param bindingGroup the bindingGroup to set
     */
    public void setBindingGroup(BindingGroup bindingGroup) {
        this.bindingGroup = bindingGroup;
    }
    
}
